<ion-view view-title="销售中的商品" class="productmanager_sale">
	<!--头部按钮-->
	<ion-nav-buttons side="right">
		<button class="button button-clear font-large-my" on-tap="onshow_productmanager_publish()">商品发布</button>
	</ion-nav-buttons>

 <ion-side-menus>
   <ion-side-menu-content drag-content="false">
   	<ion-content>
   	 <div class="row text-center font-large-my padding-0">
		<div class="col assertive">
 		  <img src="img/pro_manager_sale.png" /><br /> 
 		    销售中商品
 		</div>
 		<div class="col" on-tap="onshow_productmanager(2)">
 		   <img src="img/pro_manager_brand.png" /><br />  
 		     品牌管理
 		</div>
 		<div class="col" on-tap="onshow_productmanager(3)">
 		   <img src="img/pro_manager_waitsale.png" /><br />  
 		     待上架商品
 		</div>
 		<div class="col" on-tap="onshow_productmanager(4)">
 			<img src="img/pro_manager_sort.png" /><br />
 			自定义分类
 		</div>
 	</div>
 	
   	<li class="item stable-bg padding-0 item-borderless" style="margin-bottom: 5px;">
		<div class="row padding-0 font-large-my">
			<div class="col text-center" on-tap="orderby_price()" ng-class="{'assertive':order==2||order==3}">
				价格&nbsp;
				<i class="icon ion-ios-arrow-up icon-i-my paixu_top " ng-class="{'font-gray-my':order==3}"></i>
				<i class="icon ion-ios-arrow-down icon-i-my paixu_bottom" ng-class="{'font-gray-my':order==2}"></i>
			</div>
			<div class="col text-center" on-tap="orderby_count()"  ng-class="{'assertive':order==4||order==5}">
				销量&nbsp;
				<i class="icon ion-ios-arrow-up icon-i-my paixu_top" ng-class="{'font-gray-my':order==5}"></i>
				<i class="icon ion-ios-arrow-down icon-i-my paixu_bottom" ng-class="{'font-gray-my':order==4}"></i>
			</div>
			<div class="col text-center" on-tap="openRightMenu()">
				筛选<i class="iconfont icon-shaixuan"></i>
			</div>
			<div class="col col-10 text-center">
				<i class="icon ion-compose positive font-1rem-my"></i>
			</div>
	   </div>	
	</li>	
   		
	<div class="list list-borderless" ng-repeat="data in datas">
		 <div class="item padding-0">
		 	<div class="row padding-0">
		 		 <div class="col-30 item-image">
		 		 	 <img src="{{data.image_default}}" />
		 		 </div>
		 		 <div class="col col-67 item-text-wrap">
		 		 	<p>{{data.name}}</p>
		 		   <p>
		 		 	 <label for="isNew{{data}}"><input type="checkbox" id="isNew{{data}}" class="radio_size_zhang left-zhang" ng-model="data.is_new" ng-checked="data.is_new"/>
		 		 	 <span style="padding: 1px 5px;font-size: 0.6rem;" ng-class="{'assertive-bg light':data.is_new}" class="border-radius-my bian_gray left-zhang">新品上架</span>
		 		 	 </label>
		 		 	 <label for="isHot{{data}}">
		 		 	<span style="padding:1px 5px;font-size: 0.6rem;" ng-class="{'assertive-bg light':data.is_tui}" class="border-radius-my right-zhang bian_gray" >热门推荐</span>
		 		 	<input type="checkbox" id="isHot{{data}}"   class="right-zhang radio_size_zhang" ng-model="data.is_tui" ng-checked="{{data.is_tui}}"/>
		 		 	</label>
		 		   </p>
		 		 	 <div class="clear_zhang"></div>
		 		 	 <p><span class="assertive">￥{{data.price}}</span><span class="font-gray-my right-zhang">销量{{data.buy_count}}</span></p>
		 		 </div>
		 	</div>
		 	<div class="row text-center font-gray-my font-large-my">
		 		 <div class="col">库存<span class="assertive">1500</span>件</div>
		 		 <div class="col">冻结{{data.freez}}件</div>
		 		 <div class="col col-offset-3 bian_gray" on-tap="goods_update(data.goods_id)">下架</div>
		 		 <div class="col col-offset-3 bian_gray" on-tap="goods_delete(data.goods_id)">删除</div>
		 	</div>
		</div>
	 </div>
	</ion-content>
  </ion-side-menu-content>
		
	<ion-side-menu side="right">
			<!--引入“筛选”页面-->
		  <ion-content>
				   <div class="list list-borderless" >
				   	  <li class="item item-input padding-5 item-input-inset item-icon-right">
				   	  	 <label class="item-input-wrapper">
				   	  	  <input type="text" placeholder="请输入关键词" ng-model="scope.key"/>
				   	  	 </label>
				   	  	 <i class="icon ion-search placeholder-icon font-1rem-my" ></i>
				   	  </li>
				   	  <li class="item font-small-my padding-0 text-center" style="padding-bottom:2px;">
				   	  	<span class="bian">普通</span>
				   	  	<span class="bian">二手</span>
				   	  	<span class="bian">滞销</span>
				   	  	<span class="bian">租赁</span>
				   	  	<span class="bian">转让</span>
				   	  	<span class="bian">配件</span>
						 </li>
						 <div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
								<div class="input-label">品牌：</div>
								<div class="input-value" ng-click="doSelectBrand()">{{scope.brand_select.name}}</div>
							</div>
				   	  <li class="item padding-0">
				   	  	<hr width="90%" size="1" color="#D1D3D6"/>
				   	  </li>
						 <div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
								<div class="input-label">大分类</div>
								<div class="input-value" ng-click="doSelectCat1()">{{input.cat1.name}}</div>
							</div>
							<div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
								<div class="input-label">中分类</div>
								<div class="input-value" ng-click="doSelectCat2()">{{input.cat2.name}}</div>
							</div>
							<div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
								<div class="input-label">小分类</div>
								<div class="input-value" ng-click="doSelectCat3()">{{input.cat3.name}}</div>
							</div>
				   	  
				   	    <li class="item padding-0">
				   	  	<hr width="90%" size="1" color="#D1D3D6"/>
				   	  </li>
				   	  
				   	   <li class="item item-input">
				   	  	价格
				   	  </li>
				   	   <li class="item item-input-inset padding-5">
				   	  	<input type="text" placeholder="最低价" class="col col-40" ng-model="scope.low"/>
				   	  	<div  class="col col-20 text-center stable-bg">——</div>
				   	  	<input type="text" placeholder="最高价"  class="col col-40" ng-model="scope.high"/>
				   	  </li>
				   </div>
				   
				    <div class="row">
						<div class="col"><button class="button button-full button-energized" on-tap="reset()">重置</button></div>
						<div class="col"><button class="button button-full button-assertive" on-tap="submit()">确定</button></div>
					</div>
			</ion-content>
		</ion-side-menu>
		
	</ion-side-menus>	
</ion-view>